const http = uni.$u.http

// 得到字典目录
export const dictionaryNames = params => http.get("/dictionary/names", { params })

// 得到字典值列表
export const dictionaryByName = params => http.get("/dictionary/byName", { params })

// 得到优先级
export const dictionaryByPriority = params => http.get("/dictionary/byPriority", { params })

// 得到优先级
export const dictionarySave = data => http.post("/dictionary/save", data)

// 删除字典值
export const dictionaryRemove = data => http.post("/dictionary/remove", data)

// 启用字典值
export const dictionaryEnable = data => http.post("/dictionary/enable", data)

// 禁用字典值
export const dictionaryDisable = data => http.post("/dictionary/disable", data)
